package com.ezgo.erc.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;

import com.ezgo.erc.service.SysuserServiceImpl;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:config/spring_context.xml" })
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = false)
public class JunitTestDao extends AbstractTransactionalJUnit4SpringContextTests {

	@Autowired
	private SysuserServiceImpl sysuserService;

	@Test
	public void findTestList() throws Exception {
		sysuserService.saveSysuser(null);
	}
}
